/* src/styles/reset.css */
/* 现代 CSS 重置 - 基于 normalize.css 理念 */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* 62.5% 使得 1rem = 10px，方便计算 */
    font-size: 62.5%;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-size: 1.6rem; /* 16px */
    line-height: 1.5;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

#app {
    min-height: 100vh;
    width: 100%;
}

/* 移除默认链接样式 */
a {
    background-color: transparent;
    text-decoration: none;
    color: inherit;
}

/* 移除列表样式 */
ol, ul {
    list-style: none;
}

/* 移除按钮默认样式 */
button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

/* 移除输入框默认样式 */
input, textarea, select {
    border: none;
    background: none;
    outline: none;
    font: inherit;
}

/* 图片响应式 */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 表格重置 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 隐藏 visually 但保持对屏幕阅读器可用 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}